<?php if(count($products) > 0): ?>
<div class="sresult">
		<?php
			$links = LinkGen::getInstance(LinkGen::PRODUCT)->collectionLinks($products);
		?>
		<div class="sresultbox">
			<div class="restop">
				<img src="/project_css_js/img/restop.png" width="221" height="10" alt=""/>
			</div>
			<div class="rescenter">
				<h1><?php echo __('kiirotsingu tulemused') ?></h1>
				<ul>
					<?php foreach($products as $product): ?>
						<li><a href="<?php echo $links[$product['id']] ?>"><?php echo $product['name'] ?></a></li>
					<?php endforeach; ?>
				</ul>
				<div class="bigots">
					<div class="tsearch">
						<div class="sabuttonleft"><img src="/project_css_js/img/sbuttonleft.png" width="8" height="20" alt=""/></div>
						<div class="sabuttoncenter"><p><a href="<?php echo LinkGen::getInstance(LinkGen::STRUCTURE_ACTIONS)->link(null, array('module' => 'searchResults', 'action' => 'detailed', 'search' => $keyword)) ?>"><?php echo __('täis otsing') ?></a></div>
						<div class="sabuttonright"><img src="/project_css_js/img/sbuttonright.png" width="8" height="20" alt=""/></div>
					</div>

					<div class="clear"></div>
				</div>
				<div class="clear"></div>
			</div>
			<div class="resbottom">
				<img src="/project_css_js/img/resbottom.png" width="221" height="10" alt=""/>
			</div>
		</div>
</div>
<?php endif; ?>